package com.etone.smartAudit.mapstruct;

import com.etone.smartAudit.domain.AdminMenu;
import com.etone.smartAudit.dto.adminMenu.AdminMenuDTO;
import com.etone.smartAudit.vo.menu.MenuVO;
import org.mapstruct.*;

/**
 * @author: sovy
 * @date: 2020/12/18
 * @description:
 */
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface AdminMenuMapstruct {

    @Mappings({
            @Mapping(source = "PId", target = "pId")
    })
    MenuVO getMenuVO(AdminMenu menu);

    void copt2AdminMenu(@MappingTarget AdminMenu adminMenu, AdminMenuDTO adminMenuDTO);
}
